package cn.iocoder.yudao.module.system.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Schema(description = "管理后台 - 注册个人版")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthPersonRegisterReqVO {


    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三的企业")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "联系手机", requiredMode = Schema.RequiredMode.REQUIRED, example = "18012345678")
    @NotEmpty(message = "联系手机不能为空")
    @Length(min = 11, max = 16, message = "联系手机长度为 11-16位")
    private String contactMobile;

    @Schema(description = "验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotEmpty(message = "验证码不能为空")
    @Length(min = 4, max = 6, message = "验证码长度为 4-6 位")
    private String code;

}